package cn.demo.day7;

/**
 * 提供构造器，进行初始化
 * T型的四格方块的位置
 */

public class T extends Tetromino {
    public T() {
        cells[0] = new Cell(0, 4, TetrisGame.T);// TetrisGame.T是在主类中加载的静态资源
        cells[1] = new Cell(0, 3, TetrisGame.T);
        cells[2] = new Cell(0, 5, TetrisGame.T);
        cells[3] = new Cell(1, 4, TetrisGame.T);
        State[] state = new State[4];
        state[0] = new State(0, 0, 0, -1, 0, 1, 1, 0);
        state[1] = new State(0, 0, -1, 0, 1, 0, 0, -1);
        state[2] = new State(0, 0, 0, 1, 0, -1, -1, 0);
        state[3] = new State(0, 0, 1, 0, -1, 0, 0, 1);
    }
}
